# Contributor: omni <omni@gitlab.alpinelinux.org>
# Maintainer: omni <omni@gitlab.alpinelinux.org>
pkgname=kristall
pkgver=0.3_git20211120
_commit=6b39f24484bb0796f3f383401f95904f85b74d7b
pkgrel=0
pkgdesc="Qt small-internet client for gemini, gopher, finger and http(s)"
url="https://kristall.random-projects.net/"
# armhf: missing qt5-qtdeclarative
arch="all !armhf"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qtchooser qt5-qtbase-dev qt5-qtsvg-dev qt5-qtmultimedia-dev
	qt5-qttools-dev coreutils"
options="!check" # no test suite
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/MasterQ32/kristall/archive/$_commit.tar.gz
	set-kristall-version.patch"
builddir="$srcdir/$pkgname-$_commit"

build() {
	export pkgver # for set-kristall-version.patch
	make
}

package() {
	make install PREFIX="$pkgdir"/usr
}

sha512sums="
63cefc47b0b28eb1780ed3e3cf989fb06d9d214c1e64bbbcc47f027ccbb0ef33d482aaa501ff10b1fd077d17541871d8809290d6b31d0e26cc51118dfbdf60bf  kristall-0.3_git20211120.tar.gz
4b7cd03af976a04ae2ec03db1f07a4b5a8842306a2a2620b5d328d64cb57f53b19c3909bc757fc8008ac93819f8fae3eadf1955128835a61170c7cda83d96695  set-kristall-version.patch
"
